package com.bristua.user.controller;

import com.bristua.common.bean.Result;
import com.bristua.common.utils.HandleResultUtil;
import com.bristua.user.biz.QueryUserReturnIntegralBiz;
import com.bristua.user.model.condition.QueryUserReturnIntegralParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/29.
 */
@RestController
@Api(value="返利记录",tags={"返利记录"})
public class QueryUserReturnIntegralController {
    @Autowired
    private QueryUserReturnIntegralBiz queryUserReturnIntegralBiz;
    @ApiOperation(value="返利记录")
    @PostMapping(value="/admin/user/query/integral/detail")
    public Result queryUserReturnIntegral(@RequestBody QueryUserReturnIntegralParams queryUserReturnIntegralParams){
        return HandleResultUtil.querySuccessResult(queryUserReturnIntegralBiz.queryUserReturnIntegral(queryUserReturnIntegralParams));
    }
}
